import Vue from 'vue';
import VueRouter from 'vue-router';

Vue.use(VueRouter);

const routes = [
  {
    path: '/welcome',
    name: 'welcome',
    component: () => import(/* webpackChunkName: "welcome" */ '../views/welcome/index.vue'),
  },
  {
    path: '/store-settings',
    name: 'store-settings',
    component: () => import('../views/store-settings/index.vue'),
  },
  {
    path: '/cellular-area-config',
    name: 'cellular-area-config',
    component: () => import('../views/cellular-area-config/index.vue'),
  },
  {
    path: '/manual-price',
    name: 'manual-price',
    component: () => import('../views/manual-price/index.vue'),
  },
  {
    path: '/task-log',
    name: 'task-log',
    component: () => import('../views/task-log/index.vue'),
  },
  {
    path: '/price-base-goods',
    name: 'price-base-goods',
    component: () => import('../views/price-base-goods/index.vue'),
  },
  {
    path: '/audit-price',
    name: 'audit-price',
    component: () => import('../views/audit-price/index.vue'),
  },
  {
    path: '/auto-config',
    name: 'auto-config',
    component: () => import('../views/auto-config/index.vue'),
  },
  {
    path: '/audit-price-exception',
    name: 'audit-price-exception',
    component: () => import('../views/audit-price-exception/index.vue'),
  },
  {
    path: '/script-settings',
    name: 'script-settings',
    component: () => import('../views/script-settings/index.vue'),
  },
  {
    path: '/crawler-task',
    name: 'crawler-task',
    component: () => import('../views/crawler-task/index.vue'),
  },
  {
    path: '/price-adjust-record',
    name: 'price-adjust-record',
    component: () => import(/* webpackChunkName: "price-adjust-record" */ '../views/price-adjust-record/index.vue'),
  },
  {
    path: '/audit-price-recheck',
    name: 'audit-price-recheck',
    component: () => import('../views/audit-price-recheck/index.vue'),
  },
  {
    path: '/',
    redirect: '/welcome',
  },
];

const router = new VueRouter({
  mode: 'hash',
  routes,
});

export default router;
